#include "kmkmusic.h"

#include <QApplication>
#include <QSharedMemory>
#include <QMessageBox>


int main(int argc, char *argv[])
{

    if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
        QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling,true);
    QApplication a(argc, argv);
    QSharedMemory sharedMemory("kmkMusic");
    if(sharedMemory.attach())
    {
        QMessageBox::information(nullptr,"kmkMusic 提示","kmkMusic 正在运行...");
        return 0;
    }


    sharedMemory.create(1);

    kmkMusic w;


    w.show();
    return a.exec();
}
